import request from '@/utils/request'

//获取机器人列表
export function getRobotList(data) {
    return request({
      url: '/cyjqr/cyRobotConfig/cyListInfo',
      method: 'get',
      params:data
    })
}

//连接
export function ConnectRobot(query) {
    return request({
      url: '/cyjqr/mqttconn/conncyjqr',
      method: 'get',
      params:query
    })
}

//断开
export function DisConnectRobot(query) {
    return request({
      url: '/cyjqr/mqttconn/colsecyjqrconn',
      method: 'get',
      params:query
    })
}

//新增
export function addRobot(AddRobotData) {
    return request({
      url: '/cyjqr/cyRobotConfig',
      method: 'post',
      data: AddRobotData
    })
}

//修改
export function editRobot(data) {
  return request({
    url: '/cyjqr/cyRobotConfig',
    method: 'put',
    data: data
  })
}

//删除
export function dleteRobot(id) {
  return request({
    url: '/cyjqr/cyRobotConfig/' + id,
    method: 'delete'
  })
}